<!--
  描述：渠道标示table页
  @author jiafei
  @since 2021/12/06 11:23
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'markId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', unresize:true, edit:'text', align:'center'}">排序</th>
        <th lay-data="{field:'markId', unresize:true, align:'center'}">标示ID</th>
        <th lay-data="{field:'name', unresize:true, align:'center'}">标示名称</th>
        <th lay-data="{field:'status', unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'updater', unresize:true, align:'center'}">操作人</th>
        <th lay-data="{field:'updateTime', unresize:true, align:'center'}">操作时间</th>
        <th lay-data="{field:'操作', width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.markId}">markId</td>
        <td th:text="${item.name}">name</td>
        <td>
            <input type="checkbox" name="status" id="status" th:key="${item.markId}" th:value="${item.status}"
                   th:disabled="${!#authPermit.checkPermit('/channel/mark/updateStatus.action')}"
                   lay-text="ON|OFF" lay-skin="switch" lay-filter="chk_status" th:checked="${item.status == 2}"/>
        </td>
        <td th:text="${item.updater}">updater</td>
        <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updateTime</td>
        <td>
            <div>
                <a class="layui-btn layui-btn-xs btn-operate" th:if="${#authPermit.checkPermit('/channel/mark/group/list.action')}"
                   th:lay-href="|/channel/mark/group/list.action?markId=${item.markId}|"
                   lay-text="关联渠道管理" text="关联渠道管理">关联渠道管理</a>&nbsp;&nbsp;
            </div>
        </td>
    </tr>
    </tbody>
</table>
